import Taro, { Component } from '@tarojs/taro'
import { AtGrid } from "taro-ui"
import { View ,Text,Image} from '@tarojs/components'

export default class Category extends Taro.Component {

    pageRoute() {
        console.log(123)
    }

    render() {
        return (
            <View>
                <AtGrid onClick={this.pageRoute.bind(this)} hasBorder={false} columnNum={4} data={
                    [
                        {
                            image: 'http://py5qa4v79.bkt.clouddn.com/trace/category-traceabilit.gif',
                            value: '防伪追溯'
                        },
                        {
                            image: 'http://py5qa4v79.bkt.clouddn.com/trace/category-shopping.gif',
                            value: '逛商城'
                        },
                        {
                            image: 'http://py5qa4v79.bkt.clouddn.com/trace/category-active.png',
                            value: '活动抽奖'
                        },
                        {
                            image: 'http://py5qa4v79.bkt.clouddn.com/trace/category-news.png',
                            value: '热门新闻'
                        }
                    ]
                } />
            </View>
        )
    }

}